<template>
  <div>
    <div>
      <van-cell
        v-for="row in dataList"
        :key="row.id"
        :title="row.name"
        :icon="row.image"
        :to="{ path: '/app/partner/card', query: { id: row.id } }"
        is-link
      />
    </div>
  </div>
</template>

<script>
export default {
  name: 'PartnerEmployee',
  components: {},
  directives: {},
  filters: {},
  props: {
    title: { type: String, default: 'Partners' }
  },

  data() {
    return {
      currentRow: {}
    }
  },
  computed: {
    dataList: function() {
      return this.$store.state.ResPartnerEmp.dataList
    }
  },
  async created() {
    this.$store.dispatch('ResPartnerEmp/search')
  },

  methods: {
    onClick(item) {
      console.log('xxx, click item,', item)

      this.currentRow = item
    }
  }
}
</script>

<style type="text/css"></style>
